//
//  WBDemoViewController.swift
//  微博
//
//  Created by 于子浩 on 2017/5/22.
//  Copyright © 2017年 于子浩. All rights reserved.
//

import UIKit

class WBDemoViewController: WBBaseViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        title = "第\(navigationController?.childViewControllers.count ?? 0)个"
       
    }
    
    func showNext()  {
        
        let vc = WBDemoViewController()
        
        navigationController?.pushViewController(vc, animated: true)
        
    }
    
}
extension WBDemoViewController {

    override func setupUI() {
        
        super.setupUI()
        
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "下一个", style:.plain, target: self, action: #selector(showNext))
        
    }
    
}
